package com.think.teaching.service;

import com.think.teaching.model.Component;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 视频课程组件 服务类
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
@Service
public interface ComponentService extends IService<Component> {
	
	Component AddComponent(Component component);

	Component UpdateComponent(Component component);

	Component GetComponent(Integer id);

	List<Component> SearchComponentsWithKey(String keyString,Boolean withoutBan);
	
	IPage<Component> ListComponentWithTagAndType(Integer count, Integer page, Integer type, Integer tag,Boolean withoutBan);

	Component SetComponentState(Integer id, Integer state);
}
